<%@ include file="database_ini.jsp"%>
<%
String listname = request.getParameter("listname");
String serialkey=request.getParameter("serialkey");
int no=Integer.parseInt(serialkey);
int sumcount=0;

//	if(request.getParameter("delete") != null){
		String sql = "delete from codelkup where serialkey = ?";
		pstmt = conn.prepareStatement(sql);

		pstmt.setString(1 , no+"");
		pstmt.executeUpdate();
		
		response.sendRedirect("application.jsp?listname="+listname);
//		out.print("<CENTER>Delete success!</CENTER>");
//		response.setHeader("Refresh" , "1;url=application.jsp?listname="+ listname);
//	}
%>